/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Objetos;

/**
 *
 * @author Administrador
 */

import java.awt.Color;
import java.awt.Graphics;
import java.util.TreeMap;
import pantallajuego.*;


public class Jugador extends Figura {



    private int usrID;
    public Integer lastX, lastY;
    public Integer vida;

    public Jugador(Integer x0,Integer y0,Integer w0,Integer h0,Color color,PantallaJuego pantalla,TreeMap <Integer,Integer> tc, int id){
        super(x0,y0,w0,h0,color,pantalla,tc);
        vida=3;
        usrID=id;
    }

    @Override
    public void dibujate(Graphics g) {
        lastX=x;
        lastY=y;
        g.setColor(color);
        g.fillRect(x, y, w, h);
    }

    public int getID(){
        return usrID;
    }

    public int UltimaPosicionX(){
        return this.lastX;
    }

    public int UltimaPosicionY(){
        return this.lastX;
    }

   
   

   

}


